<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #btn{
            width: 100px;
            height: 30px;
            background: dodgerblue;
            border-radius: 6px;
            /*letter-spacing: 10px;*/
            line-height: 30px;
            color: white;
            text-align: center;

        }

        #btn:active{
            background: cornflowerblue;
        }
    </style>


</head>

<body>
    <!--
    失去焦点事件onblur
    获取焦点onfocus
    单击事件 onclick
    键盘抬起释放时触发 onkeyup
    this.value 文本框输入的值
    值改变  onChange
    -->
    <input onblur="console.log('onblur')"
            onfocus="console.log('onfocus')"
            onkeyup="console.log(this.value)"/>

    <div id="btn" onclick="console.log('onclick')">按 钮</div>
</body>
</html>

<script>



</script>
